<?php

error_reporting(E_ALL | E_STRICT);
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);

set_include_path('../library' . PATH_SEPARATOR . get_include_path());
//set_include_path('.' . PATH_SEPARATOR . '../library' . PATH_SEPARATOR . './application/default/models/' . PATH_SEPARATOR . get_include_path());

require_once "Zend/Loader.php";
Zend_Loader::registerAutoload();

$frontController = Zend_Controller_Front::getInstance();
$frontController->throwExceptions(true);
$frontController->addModuleDirectory('../application/modules');
$frontController->setControllerDirectory(array(
                                                  'default'   => '../application/controllers',
                                                  'admin'     => '../application/modules/admin/controllers',
                                                  'user'      => '../application/modules/user/controllers',
                                                  'community' => '../application/modules/community/controllers',
                                                  'story'     => '../application/modules/story/controllers',
                                               )
                                        );
$frontController->dispatch();

//var_dump($frontController->getModuleControllerDirectoryName());
//var_dump($frontController->getControllerDirectory());